package com.example.springboot.mapper;

import com.example.springboot.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {

    /**
     * 根据用户名和密码查询用户信息
     *
     * @param username
     * @param password
     * @return
     */
    UserEntity selectByUsernameAndPassword(@Param("username") String username,
                                           @Param("password") String password);
}
